#include<bits/stdc++.h>
using namespace std;

bool cmp(int a, int b) {
	return a < b;
}

int main() {
	freopen("duel.in", "r", stdin);
	freopen("duel.out", "w", stdout);
	int n;
	cin >> n;
	int a[n];
	int head = 0;
	for(int i = 0; i < n; i++) {
		cin >> a[i];
	}
	sort(a, a + n, cmp);
	int cnt = n;
	for(int i = 0; i < n; i++) {
		if(head != i) {
			if(a[i] > a[head]) {
				cnt--;
				head++;
			}
		}
	}
	cout << cnt;

	return 0;
}
